﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model
{
    [Table("MeditionModel")]
    public class MeditionModel
    {
        /// <summary>
        /// 药品编号
        /// </summary>
        [Key]
        public int MId { get; set; }
        /// <summary>
        /// 药品名称
        /// </summary>
        public string? Mname { get; set; }
        /// <summary>
        /// 科室（外键）
        /// </summary>
        public string? WardName { get; set; }
        /// <summary>
        /// 用药时间
        /// </summary>
        public DateTime? UseTime { get; set; }
        /// <summary>
        /// 病人姓名
        /// </summary>
        public string? UserName { get; set; }
        /// <summary>
        /// 病房号码
        /// </summary>
        public string? HouseNumber { get; set; }
        /// <summary>
        /// 用药状态
        /// </summary>
        public int? UseState { get; set; }
        /// <summary>
        /// 配药医生
        /// </summary>
        public string? DoctorName { get; set; }
        /// <summary>
        /// 逻辑删除
        /// </summary>
        public bool? IsDeleted { get; set; }
    }
}
